package com.penglecode.hash;

public class EqualsTest {

	public static void main(String[] args) {
		Integer i1 = 1;
		Integer i2 = 1;
		int i3 = 1;
		System.out.println(i1.equals(i2)); //true
		System.out.println(i1 == i2); //true
		System.out.println(i1 == i3); //true
		System.out.println(i1.equals(i3)); //true
		i1 = 128;
		i2 = 128;
		i3 = 128;
		System.out.println(i1.equals(i2)); //true
		System.out.println(i1 == i2); //false
		System.out.println(i1 == i3); //true
		System.out.println(i1.equals(i3)); //true
	}

}
